package com.didispace.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.didispace.bean.Book;

import lombok.Getter;

@RestController
public class HelloController {
@Autowired
private Book book;
	
	@RequestMapping("/hello")
	public String index() {
		return "Hello World";
	}
	@RequestMapping(value="/book",method= RequestMethod.GET)
	public String book(){
	return	book.toString();
	}

}